package com.pig.dao;

import com.pig.pojo.recipes.Recipes;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RecipesDao {
    int getCount(String menuName);
    //@Select("select * from p_cookbook")
    List<Recipes> findObject(String menuName, int indexSize, int pageSize);
    Recipes findObjectById(Integer id);

    int insertObject(Recipes recipes);

    void deleteById(Long recipesId);

    void updateObject(Recipes recipes);
}
